<?php
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
		'Login',
);
?>
<div class="span4"></div>
<div class="span4">
	<h1>Login</h1>
	<p>Por favor llene el siguiente formulario con sus credenciales</p>

	<div class="form">
		<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'login-form',
				'enableClientValidation'=>true,
				'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'well')
)); ?>
		<p class="note">
			Los campos con <span class="required">*</span> son requeridos.
		</p>
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('class'=>'focus')); ?>
		<?php echo $form->error($model,'username'); ?>
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
		<label class="checkbox"> 
			<?php echo $form->checkBox($model,'rememberMe'); ?>
		</label>
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
		<?php echo CHtml::submitButton('Login',array('class'=>'btn btn-primary')); ?>
		<?php $this->endWidget(); ?>
	</div>
	<!-- form -->

</div>
